package com.fr.report.script;

import com.fr.report.parameter.Parameter;
import java.util.HashMap;
import java.util.Map;

public class DataSetFunctionParameterMapNameSpace extends ParameterMapNameSpace
{
  public static DataSetFunctionParameterMapNameSpace creat(Parameter[] paramArrayOfParameter)
  {
    int i;
    HashMap localHashMap = new HashMap();
    if (paramArrayOfParameter != null)
      for (i = 0; i < paramArrayOfParameter.length; ++i)
        localHashMap.put(paramArrayOfParameter[i].getName(), paramArrayOfParameter[i].getValue());
    return new DataSetFunctionParameterMapNameSpace(localHashMap);
  }

  public DataSetFunctionParameterMapNameSpace(Map paramMap)
  {
    super(paramMap);
    this.nativeCalculator.pushNameSpace(CurrentContextTableDataNameSpace.getInstance());
  }
}